using System.Collections.Generic;
using System.IO.Ports;

namespace SerialTool.Models;

public class SerialPortSettings
{
    public string PortName { get; set; } = string.Empty;
    public int BaudRate { get; set; } = 9600;
    public int DataBits { get; set; } = 8;
    public Parity Parity { get; set; } = Parity.None;
    public StopBits StopBits { get; set; } = StopBits.One;
    
    public static readonly List<int> CommonBaudRates = new List<int> 
    { 
        300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200
    };
} 